class S2.UI.Slider
Description
A slider.
Superclass
Constructor
new S2.UI.Slider(element, options)
- element (Element): The element to act as the slider track.
- options (Object): An object containing overrides for the default options.
Instance methods
-
setValue #
S2.UI.Slider#setValue(sliderValue[, handleIndex]) -> this
- sliderValue (Number): The new value for the slider handle.
- handleIndex (Number): The index of the handle to move (for use on sliders with more than one handle). If omitted, the first/only handle is assumed.
-
undo #
S2.UI.Slider#undo() -> this
Reverts the effect of the previous call to
S2.UI.Slider#setValue
.